.material-description {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.material-modal {
  .ant-modal-body {
    padding: 0px 0px;
  }
  .ant-modal-confirm-btns {
    margin-top: 0px;
    margin-right: 30px;
  }
  .ant-pro-card-body {
    padding-bottom: 0;
  }
  .material-table {
    .ant-form-item {
      margin-bottom: 0;
    }
  }
}
.image-row {
  .ant-pro-checkcard {
    margin-bottom: 0;
  }
  .ant-pro-checkcard-content {
    display: none;
  }
  .ant-pro-checkcard-body {
    padding: 0px !important;
  }
  .ant-pro-card-body {
    margin: 0 !important;
    padding: 0px !important;
  }
  .default-img {
    margin: 0 auto;
    font-size: 24px !important;
  }
}

.image-item {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  word-break: break-all;
  background: #f1f1f1;
  border: 1px solid #eee;
  .checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
  }
  .inner {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .ant-image {
    width: 100%;
    height: 100%;
  }
  .img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px 10px;
    overflow: hidden;
    color: #fff;
    line-height: 32px;
    white-space: nowrap;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 3px #666;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    transition: all 0.5s;
    &.name {
      bottom: 0;
      opacity: 1;
    }
  }
  :hover .info {
    bottom: 0;
    opacity: 1;
    &.name {
      opacity: 0;
    }
  }
}
.material-header {
  margin-bottom: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #e6e6e6;
  .close {
    display: block;
    float: right;
    color: #666;
    font-size: 16px;
    line-height: 32px;
  }
}
.attachment-dialog {
  .ant-modal-body {
    padding: 0 !important;
  }
  .ant-modal-confirm-content {
    margin-top: 0 !important;
  }
  .ant-modal-confirm-btns {
    margin-top: 0 !important;
    padding-right: 20px;
    padding-bottom: 20px;
  }
}
